import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Check extends JPanel implements ActionListener {//查询
    private JButton backBtn;
    private Start frame;
    private JTextField textField1=new JTextField();

    private Icon anj=Util.getIcon("/images/buttonOff.jpg");

    public JTextField getTextField1() {
        return textField1;
    }

    public void setTextField1(JTextField textField1) {
        this.textField1 = textField1;
    }

    public Check(Start frame) {
        this.frame = frame;
        this.setLayout(null);
        this.setOpaque(false);
        JLabel titleLabel = new JLabel("查询");
        titleLabel.setBounds(380, 10, 100, 50);
        this.add(titleLabel);

        textField1.setBounds(350,250,100,20);
        this.add(textField1);


        backBtn = new JButton(anj);
        backBtn.setBounds(350, 350, 100, 50);
        this.add(backBtn);
        backBtn.addActionListener(this);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (backBtn == e.getSource()) {
            frame.switchPanel("menu");
        }
    }
}
